// 导入静态路由
import { constantRoutes } from '@/router'
const state = {
  menuList: [...constantRoutes]
}

const mutations = {
  setMenuList(state, payload) {
    // 将基本数组和筛选出来的数组合并
    state.menuList = [...constantRoutes, ...payload]
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
